package com.dzxy.bean;

import java.util.Date;
/**
 * javabean中的属性名和数据库中的字段名保持一致（大小写可以忽略 username=userName）
 */
public class UserBean {

    // 属性
    private Integer userId;
    private String userName;
    private String userPsw;
    private String userAddress;
    private String userTel;
    private Date userRegDate;
    // 查询条件：注册截止日期
    private Date userRegDate2;
    //文件上传路径保存地段
    private String userImg;
    // getter/setter方法接口

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPsw() {
        return userPsw;
    }

    public void setUserPsw(String userPsw) {
        this.userPsw = userPsw;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public Date getUserRegDate() {
        return userRegDate;
    }

    public void setUserRegDate(Date userRegDate) {
        this.userRegDate = userRegDate;
    }

    public Date getUserRegDate2() {
        return userRegDate2;
    }

    public void setUserRegDate2(Date userRegDate2) {
        this.userRegDate2 = userRegDate2;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPsw='" + userPsw + '\'' +
                ", userAddress='" + userAddress + '\'' +
                ", userTel='" + userTel + '\'' +
                ", userRegDate=" + userRegDate +
                ", userRegDate2=" + userRegDate2 +
                ", userImg='" + userImg + '\'' +
                '}';
    }
}


